package ar.com.angrymachine.hunter.locations;

import ar.com.angrymachine.hunter.Activity;
import ar.com.angrymachine.hunter.ActivitySet;
import ar.com.angrymachine.hunter.Game;
import ar.com.angrymachine.hunter.Locale;

public class ArenaActivitySet extends ActivitySet
{
	public ArenaActivitySet()
	{
		super(Locale.ARENA);
	}
	
	public void update(int delta, Activity runningActivity)
	{
		super.update(delta, runningActivity);
		// is everything dead yet?
		if(activities.isEmpty())
		{
			// defeated!
			Game.current.player.defeatedArenaLevel++;
			// exit arena
			Game.current.goToPreviousLocation();
		}
	}

}
